function getLoginStatus() {
    $.ajax({
        type: 'get',
        url: 'login',
        success: function(body) {
            console.log("当前已经登陆过");
        },
        error: function() {
            console.log("当前还未登陆");
            location.assign('login.html');
        }
    });
}